package com.elasticsearch.wenzi.elastic.service;

import com.elasticsearch.wenzi.elastic.response.SearchResponse;
import com.elasticsearch.wenzi.elastic.result.ProductEsResult;
import com.elasticsearch.wenzi.elastic.result.SearchResult;

import java.io.IOException;
import java.util.List;

/**
 * @author sanmu
 * @description
 * @Date 2021/7/17
 */
public interface SearchService {
    boolean saveSearch(List<ProductEsResult> list) throws IOException;

    SearchResponse searchKey(SearchResult searchResult);
}
